<!DOCTYPE html>          {% load static %}
<html>

<head>

    {% include 'script.html' %}
    {% include 'link_css.html' %}
    <link rel="shortcut icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon">

    <title> 初始化密码|运维自动化平台</title>
</head>

<body class="gray-bg">


<div class="lock-word animated fadeInDown">
    <span class="first-word">初始化***</span><span>**密码</span>
</div>

<div class="middle-box text-center lockscreen animated fadeInDown">
    <div>


        <h3>{{ data.username }}</h3>
        <p></p>

        <form class="m-t" role="form" method="post" action=""> {% csrf_token %}
            <input type="hidden" name="pk" value="{{ pk }}">
            <div class="form-group">
                <input type="password" class="form-control" id="id_newpassword" maxlength="128" name="newpassword"
                       placeholder="新密码" required="">
            </div>
            <div class="form-group">
                <input type="password" class="form-control" id="id_renewpassword" maxlength="128" name="renewpassword"
                       placeholder="确认密码" required="">
            </div>
            <button type="submit" class="btn btn-primary block full-width">提交</button>


            {% if form.errors %}
                <h5><span class="label label-default">密码必须为英文数字特殊符号组成</span></h5>

                {% for k,v in form.errors.items %}
                    <h5><span class="label label-default">{{ k }} - {{ v }}</span></h5>
                {% endfor %}

            {% endif %}
        </form>


    </div>
</div>


</body>

</html>
